﻿<div class="top-row pl-4 navbar navbar-dark">
    <a class="navbar-brand" href="">AGV呼叫系统</a>
    <button class="navbar-toggler" @onclick="ToggleNavMenu">
        <span class="navbar-toggler-icon"></span>
    </button>
</div>


<div class="@NavMenuCssClass" @onclick="ToggleNavMenu">
    <LoginControl />
    <ul class="nav flex-column">
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="PickingPage" Match="NavLinkMatch.All">
                <span class="oi " aria-hidden="true">
                    <img src="数据显示.png" style="width:20px;height:20px" />
                </span> 领料
            </NavLink>
        </li>
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="FeedingPage" Match="NavLinkMatch.All">
                <span class="oi " aria-hidden="true">
                    <img src="数据显示.png" style="width:20px;height:20px" />
                </span> 上料
            </NavLink>
        </li>
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="AgvrturnPage" Match="NavLinkMatch.All">
                <span class="oi " aria-hidden="true">
                    <img src="数据显示.png" style="width:20px;height:20px" />
                </span> AGV退料
            </NavLink>
        </li>
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="HostreturnPage" Match="NavLinkMatch.All">
                <span class="oi " aria-hidden="true">
                    <img src="数据显示.png" style="width:20px;height:20px" />
                </span> 主机退料
            </NavLink>
        </li>
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="CachereturnPage" Match="NavLinkMatch.All">
                <span class="oi " aria-hidden="true">
                    <img src="数据显示.png" style="width:20px;height:20px" />
                </span> 缓存架退料
            </NavLink>
        </li>
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="InboundPage" Match="NavLinkMatch.All">
                <span class="oi " aria-hidden="true">
                    <img src="数据显示.png" style="width:20px;height:20px" />
                </span> 下料
            </NavLink>
        </li>
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="EmptyPage" Match="NavLinkMatch.All">
                <span class="oi " aria-hidden="true">
                    <img src="数据显示.png" style="width:20px;height:20px" />
                </span> 领取空轴
            </NavLink>
        </li>
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="ClearAGING2KWPage" Match="NavLinkMatch.All">
                <span class="oi " aria-hidden="true">
                    <img src="数据显示.png" style="width:20px;height:20px" />
                </span> 清空AG2库位信息
            </NavLink>
        </li>
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="ClearFullCachePage" Match="NavLinkMatch.All">
                <span class="oi " aria-hidden="true">
                    <img src="数据显示.png" style="width:20px;height:20px" />
                </span> 清空涂层缓存架信息
            </NavLink>
        </li>
       
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="OutBoundAging2" Match="NavLinkMatch.All">
                <span class="oi " aria-hidden="true">
                    <img src="数据显示.png" style="width:20px;height:20px" />
                </span> AGING2出库
            </NavLink>
        </li>





        @*<li class="nav-item px-3">
        <NavLink class="nav-link" href="MaterialTypePage">
        <span class="oi " aria-hidden="true">
        <img src="缓存区设置.png" style="width:20px;height:20px" />
        </span> 物料类型设置
        </NavLink>
        </li>*@
        @*<li class="nav-item px-3">
        <NavLink class="nav-link" href="BusinessDepartmentPage">
        <span class="oi " aria-hidden="true">
        <img src="业务部设置.png" style="width:20px;height:20px" />
        </span> 业务部设置
        </NavLink>
        </li>*@
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="/logout?returnUrl=/">
                <span class="oi " aria-hidden="true">
                    <img src="退出.png" style="width:20px;height:20px" />
                </span> 退出
            </NavLink>
        </li>
    </ul>
</div>

@code {
    private bool collapseNavMenu = true;

    private string NavMenuCssClass => collapseNavMenu ? "collapse" : null;

    private void ToggleNavMenu()
    {
        collapseNavMenu = !collapseNavMenu;
    }
}
